Optimal. Leaf size=97 \[ \frac{3 \sqrt{-\cos (c+d x)} \sqrt{\cos (c+d x)} \csc (c+d x) \sqrt{1-\sec (c+d x)} \sqrt{\sec (c+d x)+1} \Pi \left (-\frac{1}{2};\sin ^{-1}\left (\frac{\sqrt{3-2 \cos (c+d x)}}{\sqrt{\cos (c+d x)}}\right )|-\frac{1}{5}\right )}{\sqrt{5} d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.100714, antiderivative size = 97, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.074, Rules used = {2810, 2808} \[ \frac{3 \sqrt{-\cos (c+d x)} \sqrt{\cos (c+d x)} \csc (c+d x) \sqrt{1-\sec (c+d x)} \sqrt{\sec (c+d x)+1} \Pi \left (-\frac{1}{2};\sin ^{-1}\left (\frac{\sqrt{3-2 \cos (c+d x)}}{\sqrt{\cos (c+d x)}}\right )|-\frac{1}{5}\right )}{\sqrt{5} d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2810
Rule 2808
Rubi steps
\begin{align*} \int \frac{\sqrt{-\cos (c+d x)}}{\sqrt{3-2 \cos (c+d x)}} \, dx &=\frac{\sqrt{-\cos (c+d x)} \int \frac{\sqrt{\cos (c+d x)}}{\sqrt{3-2 \cos (c+d x)}} \, dx}{\sqrt{\cos (c+d x)}}\\ &=\frac{3 \sqrt{-\cos (c+d x)} \sqrt{\cos (c+d x)} \csc (c+d x) \Pi \left (-\frac{1}{2};\sin ^{-1}\left (\frac{\sqrt{3-2 \cos (c+d x)}}{\sqrt{\cos (c+d x)}}\right )|-\frac{1}{5}\right ) \sqrt{1-\sec (c+d x)} \sqrt{1+\sec (c+d x)}}{\sqrt{5} d}\\ \end{align*}
Mathematica [A] time = 0.192793, size = 121, normalized size = 1.25 \[ \frac{4 \cos ^2\left (\frac{1}{2} (c+d x)\right ) \sqrt{\frac{3-2 \cos (c+d x)}{\cos (c+d x)+1}} \sqrt{\frac{\cos (c+d x)}{\cos (c+d x)+1}} \left (F\left (\left .\sin ^{-1}\left (\tan \left (\frac{1}{2} (c+d x)\right )\right )\right |-5\right )+2 \Pi \left (-1;\left .-\sin ^{-1}\left (\tan \left (\frac{1}{2} (c+d x)\right )\right )\right |-5\right )\right )}{d \sqrt{3-2 \cos (c+d x)} \sqrt{-\cos (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.426, size = 178, normalized size = 1.8 \begin{align*}{\frac{-{\frac{i}{5}}\sqrt{5}\sqrt{2} \left ( \sin \left ( dx+c \right ) \right ) ^{2}}{d \left ( 2\, \left ( \cos \left ( dx+c \right ) \right ) ^{2}-5\,\cos \left ( dx+c \right ) +3 \right ) \cos \left ( dx+c \right ) } \left ({\it EllipticF} \left ({\frac{i \left ( -1+\cos \left ( dx+c \right ) \right ) \sqrt{5}}{\sin \left ( dx+c \right ) }},{\frac{i}{5}}\sqrt{5} \right ) -2\,{\it EllipticPi} \left ({\frac{i \left ( -1+\cos \left ( dx+c \right ) \right ) \sqrt{5}}{\sin \left ( dx+c \right ) }},1/5,i/5\sqrt{5} \right ) \right ) \sqrt{3-2\,\cos \left ( dx+c \right ) }\sqrt{-\cos \left ( dx+c \right ) }\sqrt{{\frac{\cos \left ( dx+c \right ) }{1+\cos \left ( dx+c \right ) }}}\sqrt{-2\,{\frac{-3+2\,\cos \left ( dx+c \right ) }{1+\cos \left ( dx+c \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{-\cos \left (d x + c\right )}}{\sqrt{-2 \, \cos \left (d x + c\right ) + 3}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (-\frac{\sqrt{-\cos \left (d x + c\right )} \sqrt{-2 \, \cos \left (d x + c\right ) + 3}}{2 \, \cos \left (d x + c\right ) - 3}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{- \cos{\left (c + d x \right )}}}{\sqrt{3 - 2 \cos{\left (c + d x \right )}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{-\cos \left (d x + c\right )}}{\sqrt{-2 \, \cos \left (d x + c\right ) + 3}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]